package com.zut.hospital.service.pharmacy;


import com.zut.hospital.entity.pharmacy.Purchase;

import java.text.ParseException;
import java.util.Date;
import java.util.List;
import java.util.Map;

public interface PurchaseService {
    /*String getAllPurchase();*/
    String layuiJsonParse(List<Map<String, String>> list,int size);
    String pagePurchase(int currPage, int pageSize);
    List<Purchase> getAll();
    /*String delPurchase(String a);*/
    int insertPurchase(String med_name, double price, int count, Date date, String remark, String supplier, String physician)throws ParseException;
    int deletePurchase(String number);
    String findPurchaseByMedName(int currPage,int pageSize,String med_name);
    int updatePurchase(int id,String field,String value);
//    String findPurchaseByMedNameConsole(String med_name);
}
